package com.gosophia.conference.action.confPrepare;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.gosophia.commons.web.action.BaseSupportAction;
import com.gosophia.conferenceManagement.confPreparation.ws.ConfPreparationWebService;

/**
 * 删除会议材料
 * @author wangxinbing
 * @since  2011-4-20
 *  Copyright (c) 2011 Gosophia corporation All Rights Reserved
 */
@Component("DeleteConfPAttachmentAction")
@Scope("prototype")
public class DeleteConfPAttachmentAction extends BaseSupportAction{
	@Autowired
	private ConfPreparationWebService confPreparationWebService;
	private Long documentId;
	
	private Long jobId;
    
	public String _execute() throws Exception{
		confPreparationWebService.deleteConfPMetailBydocId(documentId,jobId);
		return SUCCESS;
	}

	public Long getDocumentId() {
		return documentId;
	}

	public void setDocumentId(Long documentId) {
		this.documentId = documentId;
	}

	public Long getJobId() {
		return jobId;
	}

	public void setJobId(Long jobId) {
		this.jobId = jobId;
	}
}
